package employee;

public class Work extends Employee{
	private String dept;
	private int wMoney;
	public Work(){}
	public Work(String name, int age, String sex,String dept, int wMoney) {
		super(name,age,sex);
		this.dept = dept;
		this.wMoney = wMoney;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public int getwMoney() {
		return wMoney;
	}
	public void setwMoney(int wMoney) {
		this.wMoney = wMoney;
	}
	public String toString(){
		return this.getName()+this.getAge()+this.getSex();
	}
}
